package com.edu.service;

import com.edu.dao.CollegeMapper;
import com.edu.pojo.College;

import java.util.List;

public class CollegeServiceImpl implements CollegeService{


    private CollegeMapper collegeMapper;

    public void setCollegeMapper(com.edu.dao.CollegeMapper collegeMapper) {
        this.collegeMapper = collegeMapper;
    }
    public List<College> getAllCollege(){
        return collegeMapper.getAllCollege();
    }

    public String getNameByID(String id){
        return collegeMapper.getNameByID(id);
    }

    public int getIdByName(String name){
        return collegeMapper.getIdByName(name);
    }

}
